]> dgit.raspbian.org Git - gnome-shell.git/commit
switcherPopup: Move to a ClutterGesture for closing the popup
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 13 Jul 2025 10:01:10 +0000 (12:01 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 28 Aug 2025 17:14:06 +0000 (19:14 +0200)
commit314137c8c97237753675e8195980c8c56f434499
tree53b2d3eb8a6cc56c6891a999f63d89f521e79847
parent4541663470954a62b2071fd8a93d904ff9b0eb9c
switcherPopup: Move to a ClutterGesture for closing the popup

When the user presses a mouse button outside of the switcherPopup, the
popup should close. This broke when we moved StButton to ClutterGesture,
because the button_press_event() handler in switcherPopup will close the
popup before the click gesture recognizes.

Since we're trying to move away from direct event handling anyway, port
this functionality to a LongPressGesture with a duration of 0, so that
the popup closes immediately on button press as it used to.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2853>
js/ui/switcherPopup.js